package com.bestcem.xm.qdes.controller.param;

import com.bestcem.xm.common.core.annotation.XmGetQueryWebProperty;
import com.bestcem.xm.common.core.annotation.XmSqlInjection;
import com.bestcem.xm.common.core.domain.base.UserBaseInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author guitao.lu
 * @version V1.0
 * @date 2022/8/1
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ProjectLibPageParam extends UserBaseInfo {

    //bean filed 和前端传递的keyname 一样可以不用写
    @ApiModelProperty(value = "模板名称模糊查询")
    private String title;

    @ApiModelProperty(value = "标签id集合", name = "label_ids")
    @XmGetQueryWebProperty(value = "label_ids")
    private List<String> labelIds;

    @ApiModelProperty(value = "0-推荐的，1-我收藏的，不填就查所有", name = "lib_type")
    @XmGetQueryWebProperty(value = "lib_type")
    private String libType;

    @ApiModelProperty(hidden = true)
    private Boolean isOfficial;

    @ApiModelProperty(value = "根据字段排序")
    @XmSqlInjection
    private String sortBy;

    @XmSqlInjection
    @ApiModelProperty(value = "排序，升序-降序")
    private Boolean descending;

    @ApiModelProperty(value = "用户id")
    private String uid;

    @ApiModelProperty(value = "问卷id集合", hidden = true)
    private List<String> ids;
}
